<template>
  <el-table
    :data="reset"
    border
    @selection-change="change"
    style="width: 99%">
    <el-table-column
      type="selection"
      width="55">
    </el-table-column>
    <el-table-column
      prop="ID"
      label="序号"
      width="100">
    </el-table-column>
    <el-table-column
      prop="Title"
      label="标题"
      width="180">
    </el-table-column>
    <el-table-column
      prop="Content"
      label="内容">
    </el-table-column>
    <el-table-column
      prop="Version"
      label="系统版本">
    </el-table-column>
    <el-table-column
      prop="IsDeleteFormat"
      label="状态">
    </el-table-column>
    <el-table-column
      prop="CreateByFormat"
      label="创建人">
    </el-table-column>
    <el-table-column
      prop="CreateTime"
      label="创建时间">
    </el-table-column>
    <el-table-column
      prop="LastModifyByFormat"
      :show-overflow-tooltip="true"
      width="180"
      label="修改人">
    </el-table-column>
    <el-table-column
      prop="LastModifyTime"
      label="修改时间">
    </el-table-column>
  </el-table>
</template>

<script>
  export default {
    props:{
        reset:{
          type:Array,
          required:true
        }
      },
    data() {
      return{

      }
    },
    methods:{
      change(val){
          let listId=[]
          val.forEach(el => {
              listId.push(el.ID)
          });
          this.$emit('getId',listId)
          this.$emit('datalist',val)
        },
        handleDelete(){
          this.$parent.dialogVisible=true
        }
    }
  }
</script>